package com.fuershiye.woman.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fuershiye.woman.monitor.beans.Page;
import com.fuershiye.woman.monitor.dao.BulletinDao;
import com.fuershiye.woman.monitor.model.Bulletin;
import com.fuershiye.woman.monitor.service.BulletinService;

@Service("BulletinService")
public class BulletinServiceImpl implements BulletinService {

    
	@Autowired
	private BulletinDao itDao;

	@Override
	public void save(Bulletin it) {
		itDao.save(it);
	}

	@Override
	public void delete(Long id) {
		itDao.delete(id);
	}

	@Override
	public Bulletin get(Long id) {
		return itDao.get(id);
	}

	@Override
	public List<Bulletin> listByCondition(String title, Integer type, Integer status, Page page) {
		return itDao.listByCondition(title, type, status, page);
	}
	@Override
	public int countByCondition(String title, Integer type, Integer status) {
		return itDao.countByCondition(title, type, status);
	}

}
